import { server } from '../config';

export const getGoods = params => {
    return server({
        method: 'get',
        url: '/goods/getGoods',
        params
    });
};

export const doGoods = params => {
    return server({
        method: 'put',
        url: '/goods/doGoods',
        params
    });
};

export const addGoods = data => {
    return server({
        method: 'post',
        url: '/goods/addGoods',
        data
    });
};

export const listGoodsType = () => {
    return server({
        method: 'get',
        url: '/goods/getGoodsType'
    });
};
export const doGoodsType = params => {
    return server({
        method: 'put',
        url: '/goods/doGoodsType',
        params
    });
};
export const addGoodsType = data => {
    return server({
        method: 'post',
        url: '/goods/addGoodsType',
        data
    });
};
export const updateGoodsType = data => {
    return server({
        method: 'put',
        url: '/goods/updateGoodsType',
        data
    });
};


export const updateGoods = data => {
    return server({
        method: 'put',
        url: '/goods/updateGoods',
        data
    });
};




